<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

							<ul class="com_pt_box trip_list">
                                	<c:forEach items="${tripModel.list}"var="myTripList">
	                                    <li>
	                                    	<c:forEach items="${myTripList.myTripDayList}"var="myTripDayList" varStatus="status">
		                                    	<c:if test="${status.index==0}">
		                                    		<a href="javascript:void(0);" class="fl" onclick="viewMyTrip('${myTripList.id}')"><img src="${myTripDayList.image}" class="block" style="width: 120px;height: 60px;"/></a>
		                                      	</c:if>
	                                      	 </c:forEach>
	                                        
	                                        <div class="r_box">
	                                            <a href="javascript:void(0);" class="name" onclick="viewMyTrip('${myTripList.id}')">"${myTripList.title}"</a>
	                                            <p class="clearfix">
	                                            <span class="fr clr666 mr10"><fmt:formatDate value="${myTripList.gmtCreated}" pattern="MM-dd HH:mm" /></span></p>
	                                        </div>
	                                    </li>
                                    </c:forEach>
                                </ul>
                                <div class="fy_box">
                                	<span><i>${pageT}</i>/<i>${tripModel.totalPage}</i></span> <a href="#" onclick="myTripUpPage();"><</a><a href="#" onclick="myTripNextPage();">></a>
                                </div>
 <script language="javascript">
	
	function myTripNextPage(){
		var pageT=${pageT}+1;
		$('#myTripPage').load("myTripPage.htm?pageT="+pageT);
		
		//alert(pageT);
	}
	function myTripUpPage(){
		var pageT=${pageT}-1;
		$('#myTripPage').load("myTripPage.htm?pageT="+pageT);
		//alert(pageT);
	}
	
 </script>